package com.ruoyi.system.api;

import com.alibaba.fastjson2.JSONObject;
import com.ruoyi.common.core.constant.SecurityConstants;
import com.ruoyi.common.core.constant.ServiceNameConstants;
import com.ruoyi.common.core.domain.R;
import com.ruoyi.system.api.factory.RemotePublicFallbackFactory;
import com.ruoyi.system.api.model.LoginUser;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestHeader;

@FeignClient(contextId = "remotePublicService", value = ServiceNameConstants.SYSTEM_SERVICE, fallbackFactory = RemotePublicFallbackFactory.class)
public interface RemotePublicService {

    @GetMapping("/xcxpublic/qywxxcx_msg_push")
    public R<String> qywxxcx_msg_push(@RequestBody JSONObject info, @RequestHeader(SecurityConstants.FROM_SOURCE) String source);

}
